package com.wanmait.recycle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wanmait.recycle.mapper.RubbishUnitMapper;
import com.wanmait.recycle.pojo.RubbishUnit;
import com.wanmait.recycle.service.RubbishUnitService;
import com.wanmait.recycle.util.Pager;

@Service
@Transactional
public class RubbishUnitServiceImpl implements RubbishUnitService {
	@Resource 
	private RubbishUnitMapper rubbishUnitMapper;
	
	@Override
	public void insert(String unitString) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(RubbishUnit object) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public RubbishUnit findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<RubbishUnit> findAll(Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	

	@Override
	public int getDataCount(RubbishUnit object) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<RubbishUnit> findAll(Pager pager, RubbishUnit object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<RubbishUnit> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<RubbishUnit> findAll(RubbishUnit object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insert(RubbishUnit object) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteOneUnit(Integer rubbishId, Integer unitId) {
		
		rubbishUnitMapper.deleteOneUnit(rubbishId,unitId);
		
	}

	@Override
	public void insertOneUnit(Integer rubbishId, Integer unitId) {
		
		rubbishUnitMapper.insertOneUnit(rubbishId,unitId);
	}

	@Override
	public List<RubbishUnit> selectById(Integer id) {
		// TODO Auto-generated method stub
		return rubbishUnitMapper.selectById(id);
	}

	
}
